import request from './index'

export const doUploadImage = (filePath?: string) => {
  return request.upload({
    filePath,
    name: "file",
    fileType: "image",
    url: '/LogisticsInfo/Upload',
  })
}

export const doSubmit = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/LogisticsInfo',
    type: 'POST',
    page: page
  })
}
export const doList = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/LogisticsInfo/MyGet',
    type: 'GET',
    page: page
  })
}

export const doCancel = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/LogisticsInfo/Status',
    type: 'POST',
    page: page
  })
}
export const doListTwo = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/LogisticsInfo/MyOrder',
    type: 'GET',
    page: page
  })
}

export const doMessageList = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/Record',
    type: 'GET',
    page: page
  })
}

export const doDetail = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/LogisticsInfo/detail',
    type: 'GET',
    page: page
  })
}